Fixed GtkCellAreaBoxContext for some typos introduced while removing GtkCellAreaConte...
authorTristan Van Berkom <tristan.van.berkom@gmail.com>
Thu, 2 Dec 2010 04:19:37 +0000 (13:19 +0900)
committerTristan Van Berkom <tristan.van.berkom@gmail.com>
Thu, 2 Dec 2010 04:19:37 +0000 (13:19 +0900)
gtk/gtkcellareaboxcontext.c

index 463be8f2d53d9ebfc4f9f84aa56e6b235631ba0a..6ed66d39983d665213e2bd5595b94d25f837844b 100644 (file)
@@ -418,9 +418,9 @@ gtk_cell_area_box_context_sum (GtkCellAreaBoxContext *context,
 
   for (i = 0; i < array->len; i++)
     {
-      CachedSize *size = &g_array_index (priv->base_widths, CachedSize, i);
+      CachedSize *size = &g_array_index (array, CachedSize, i);
 
-      if (box_orientation == GTK_ORIENTATION_HORIZONTAL)
+      if (box_orientation == orientation)
        {
          /* Dont add spacing for 0 size groups, they can be 0 size because
           * they contain only invisible cells for this round of requests